import Vue from 'vue';
import VueRouter from 'vue-router';
import home from "../views/index.vue"
import shangpin from "../views/shangpin.vue"
import xuanxing from "../views/xuanxiang.vue"
import Cat from "../views/cat.vue"
import my from "../views/my.vue"
import hema from'../views/hema.vue'
Vue.use(VueRouter);
export default new VueRouter({
    mode: 'history',
    routes: [
        {
            path: '/',
            component: home,
        },
        {
            path: '/home',
            component: home,
        },
        {
            path: '/shangpin',
            component: shangpin,
            children: [
                {
                    path: 'itemdata',
                    name: 'itemdata',
                    component: () => import('../views/shouye/Itemdata.vue')
                }
            ]
        },
        {
            path: "/xuanxing",
            component: xuanxing
        },
       
        {
            path: '/cat',
            component: Cat
        },
        {
            path: '/my',
            component: my
        },
        {
            path: '/hema',
            component: hema
        },
    ]
})